<?php

namespace app\xdk\validate;
use think\Validate;
class Plan extends Validate
{
    //定义验证规则
    protected $rule = [
        'title|必填' => 'require',
        'is_free|是否免费'  => 'require|in:0,1',
        'is_public|是否公开'  => 'require|in:0,1',

    ];

    //定义验证提示
    protected $message = [
        'name.regex' => '行为标识由字母和下划线组成',
    ];
}
